package com.atguigu03._extends.exer2;

/**
 * @author NoobMaster69  * @date 2024/5/30 0030 星期四 14:03
 */
public class Circle {
    private double radius;

    public Circle() {
        radius = 1;
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double findArea(){

        return radius *radius *Math.PI;
    }

}
